package com.bridgeintelligent.tag.webserver.security;

public class SsoConstants {

    /**
     * 从SSO系统跳回的地址，用于登录画像与从SSO系统获取用户信息
     */
    public static final String SSO_LOGIN_PATH = "http://%s:%s%s/sso/login";

    /**
     * 主页地址
     */
    public static final String SSO_HOME_PATH = "http://%s:%s%s/index.html/";

    /**
     * SSO系统的登录页面
     */
    public static final String SSO_AUTHORIZATION_URI = "%s:%s/idp/oauth2/authorize"
            + "?redirect_uri=%s&client_id=%s&response_type=code";

    /**
     * 从SSO系统获取TOKEN信息的地址
     */
    public static final String SSO_FETCH_TOKEN_URI = "%s:%s/idp/oauth2/getToken"
            + "?client_id=%s&client_secret=%s&code=%s&grant_type=%s";

    /**
     * 从SSO系统获取用户信息的地址
     */
    public static final String SSO_FETCH_USER_URI = "%s:%s/idp/oauth2/getUserInfo";

    /**
     * SSO系统返回的TOKEN
     */
    public static final String COOKIE_SSO_TOKEN = "sso_token";

    /**
     * 用于刷新token时间的token
     */
    public static final String COOKIE_SSO_REFRESH_TOKEN = "sso_refresh_token";

    /**
     * 最后一次访问时间(时间戳)
     */
    public static final String COOKIE_SSO_LAST_ACCESS = "sso_last_access";

    /**
     * token 过期时间(秒)
     */
    public static final String COOKIE_SSO_TOKEN_EXPIRES = "sso_token_expires";

    /**
     * 默认密码，DefaultAuthenticationController.CCIS_LW_PWD
     */
    public static final String PASSWORD = "@ThirdPartIn#";

}
